﻿using FH.Application.NewsApp.Dtos;
using System;
using System.Collections.Generic;

namespace FH.Application.NewsApp
{
    public interface INewsAppService
    {
        List<NewsDto> GetNewsPage(int startPage, int pageSize, out int rowCount);
        NewsDto InsertOrUpdate(NewsDto dto);
        NewsDto Get(Guid id);
        /// <summary>
        /// 根据Id集合批量删除
        /// </summary>
        /// <param name="ids">Id集合</param>
        void DeleteBatch(List<Guid> ids);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id">Id</param>
        void Delete(Guid id);
    }
}
